| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function Invoke( _ ByVal command As String, _ ByVal data() As Byte _ ) As ImapResponse() | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Imap Dim command As String Dim data() As Byte Dim value() As ImapResponse value = instance.Invoke(command, data) | |
| C# | |
|---|---|
public ImapResponse[] Invoke( string command, byte[] data ) | |
| Managed Extensions for C++ | |
|---|---|
public: ImapResponse*[]* Invoke( string* command, byte[]* data ) | |
| C++/CLI | |
|---|---|
public: array<ImapResponse^>^ Invoke( String^ command, array<byte>^ data ) | |
Parameters
- command
- The command to issue to the server.
- data
- The data to send after the server responds to the command.
Return Value
An ImapResponse object representing the response from the server.| Exception | Description |
|---|---|
| Dart.PowerTCP.Mail.ProtocolException | Bad IMAP protocol response received from server. |
| System.Net.Sockets.SocketException | The requested address is not valid in its context. |
The Imap.Invoke method sends out the specified command. The contents of the data are sent as a literal following any continuation responses from the IMAP server. This follows the APPEND command model, where the APPEND command is issued, the server issues a continuation response, and the actual message data is then sent
The Imap.Invoke method is useful for enabling communication with servers that recognize proprietary commands not included in the Imap component model.
Target Platforms: Microsoft .NET Framework 2.0